/**
 * @ author: 汪孟苹
 */
define(["jquery","bbcare","fu/app/comm/comm",
    "scprit/followup/app/datatable/datatable.ui.js",
    "scprit/followup/app/lostFollowupManager/followupWarnSendRecord.servers.js"],
    function ($,$bb,$comm,$datatableUi,$followupWarnSendRecordServers) {
    var followupWarnSendRecord = {};
    
    /**
     * 请求队列成功后的回调函数
     */
    var ajaxQueueCallBack = function(rows){
        $comm.selectQueue({
            "id": "queue", 
            "list": rows
        });
    }

    followupWarnSendRecord.init = function(){
        $followupWarnSendRecordServers.ajaxQueue(ajaxQueueCallBack);    // 加载队列
        $datatableUi.init({
            "id": "followupWarnSendRecord",
            "options": $followupWarnSendRecordServers.getOptions()
        });  
    }

    return followupWarnSendRecord;
});